9cd56baf00e1354157c2c96b9270bbc2a2e3c1ca,src/org/exist/storage/NativeTextEngine.java,IndexScanCallback,indexInfo,#Value#number#,1385

Before Change


			try {
				while (is.available() > 0) {
                    docAdded = false;                    
                    storedDocId = is.readInt();
                    storedSection = is.readByte();
                    termCount = is.readInt();
                    size = is.readFixedInt();
                    storedDocument = docs.getDoc(storedDocId);
                    //Exit if the document is not concerned
					if (storedDocument == null) {
						is.skipBytes(size);
						continue;
					}					
                    previousGID = 0;
					for (int j = 0; j < termCount; j++) {
                        delta = is.readLong(); 
                        storedGID = previousGID + delta;
						freq = is.readInt();
                        is.skip(freq);
						if (contextSet != null) {
							include = false;

After Change


			try {
				while (is.available() > 0) {
                    boolean docAdded = false;                    
                    int storedDocId = is.readInt();
                    byte storedSection = is.readByte();
                    int termCount = is.readInt();
                    //TOUNDERSTAND -pb
                    int size = is.readFixedInt();
                    DocumentImpl storedDocument = docs.getDoc(storedDocId);
                    //Exit if the document is not concerned
					if (storedDocument == null) {
						is.skipBytes(size);
						continue;
					}					
                    long previousGID = 0;
					for (int j = 0; j < termCount; j++) {
                        long delta = is.readLong(); 
                        long storedGID = previousGID + delta;
                        int freq = is.readInt();
                        //TODO : use variable
                        is.skip(freq);
						if (contextSet != null) {